#!/usr/bin/env node

const fs=require('fs'),
      src=process.argv[2],
      mod=process.argv[3],
      log=console.log;

// ./15-mod.js file mod
//修改文件权限
try{
  fs.chmodSync(src,mod);
}catch(e){
  log(e.message);
}
